package com.yanqu.road.server.timer;

import com.yanqu.road.entity.union.cross.CrossUnionServerGroup;
import com.yanqu.road.logic.config.GameConfig;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.rank.RankProto;
import com.yanqu.road.server.connect.CrossAgentLinkedControl;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.manager.config.CrossSystemLoopMgr;
import com.yanqu.road.server.manager.rank.CrossGroupUserMonthAbilityRankMgr;
import com.yanqu.road.server.manager.rank.CrossRankMgr;
import com.yanqu.road.server.manger.CrossUnionServerGroupMgr;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.utils.ConfigHelper;
import com.yanqu.road.utils.YanQuMessageUtils;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.List;

/**
 */
public class CrossSystemLoopTask extends GeneralTask {
    private boolean isRun;

    @Override
    public void doRun() {
        try {
            if (!isRun) {
                isRun = true;

                CrossSystemLoopMgr.checkSystemLoop(false);
            }
        } catch (Exception e) {
            getLOGGER().error("CrossSystemLoopTask error", e);
        } finally {
            isRun = false;
        }

    }
}